<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 1.修饰符：lazy 点击回车的时候才会响应绑定 -->
        <input type="text" v-model.lazy="message">
        <h2>{{message}}</h2>

        <!-- 2.修饰符：number -->
        <input type="number" v-model.number="num">
        <h2>{{num}}-------{{typeof(num)}}</h2>
        <!-- 3.修饰符trim -->
        <input type="text" v-model.trim="name">
        <h2>{{name}}-------{{typeof(name)}}</h2>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        const app=new Vue({
            el:'#app',
            data:{
                message:'vuejs',
                num:0,
                name:''
            }
        })
    </script>
</body>
</html>